//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.baidu.trace;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import com.baidu.trace.model.TraceLocation;

public interface IService extends IInterface {
    boolean setProtocolType(int var1) throws RemoteException;

    boolean setLocationMode(int var1) throws RemoteException;

    boolean setInterval(int var1, int var2) throws RemoteException;

    boolean setCacheSize(int var1) throws RemoteException;

    boolean setLocTimeOffset(int var1) throws RemoteException;

    boolean queryRealTimeLoc(TraceLocation var1) throws RemoteException;

    void stopTrace(long var1, String var3) throws RemoteException;

    int startGather() throws RemoteException;

    int stopGather() throws RemoteException;

    boolean handleLocalFence(int var1, long var2, String var4) throws RemoteException;

    void handleExtendedOperate(int var1) throws RemoteException;

    void registerListener(IListener var1) throws RemoteException;

    void unregisterListener() throws RemoteException;

    public abstract static class Stub extends Binder implements IService {
        private static final String DESCRIPTOR = "com.baidu.trace.IService";
        static final int TRANSACTION_setProtocolType = 1;
        static final int TRANSACTION_setLocationMode = 2;
        static final int TRANSACTION_setInterval = 3;
        static final int TRANSACTION_setCacheSize = 4;
        static final int TRANSACTION_setLocTimeOffset = 5;
        static final int TRANSACTION_queryRealTimeLoc = 6;
        static final int TRANSACTION_stopTrace = 7;
        static final int TRANSACTION_startGather = 8;
        static final int TRANSACTION_stopGather = 9;
        static final int TRANSACTION_handleLocalFence = 10;
        static final int TRANSACTION_handleExtendedOperate = 11;
        static final int TRANSACTION_registerListener = 12;
        static final int TRANSACTION_unregisterListener = 13;

        public Stub() {
            this.attachInterface(this, "com.baidu.trace.IService");
        }

        public static IService asInterface(IBinder var0) {
            IInterface var1;
            return (IService)(var0 == null?null:((var1 = var0.queryLocalInterface("com.baidu.trace.IService")) != null && var1 instanceof IService?(IService)var1:new IService.Stub.Proxy(var0)));
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int var1, Parcel var2, Parcel var3, int var4) throws RemoteException {
            int var10;
            boolean var11;
            switch(var1) {
                case 1:
                    var2.enforceInterface("com.baidu.trace.IService");
                    var10 = var2.readInt();
                    var11 = this.setProtocolType(var10);
                    var3.writeNoException();
                    var3.writeInt(var11?1:0);
                    return true;
                case 2:
                    var2.enforceInterface("com.baidu.trace.IService");
                    var10 = var2.readInt();
                    var11 = this.setLocationMode(var10);
                    var3.writeNoException();
                    var3.writeInt(var11?1:0);
                    return true;
                case 3:
                    var2.enforceInterface("com.baidu.trace.IService");
                    var10 = var2.readInt();
                    int var14 = var2.readInt();
                    boolean var15 = this.setInterval(var10, var14);
                    var3.writeNoException();
                    var3.writeInt(var15?1:0);
                    return true;
                case 4:
                    var2.enforceInterface("com.baidu.trace.IService");
                    var10 = var2.readInt();
                    var11 = this.setCacheSize(var10);
                    var3.writeNoException();
                    var3.writeInt(var11?1:0);
                    return true;
                case 5:
                    var2.enforceInterface("com.baidu.trace.IService");
                    var10 = var2.readInt();
                    var11 = this.setLocTimeOffset(var10);
                    var3.writeNoException();
                    var3.writeInt(var11?1:0);
                    return true;
                case 6:
                    var2.enforceInterface("com.baidu.trace.IService");
                    TraceLocation var13 = new TraceLocation();
                    var11 = this.queryRealTimeLoc(var13);
                    var3.writeNoException();
                    var3.writeInt(var11?1:0);
                    var3.writeInt(1);
                    var13.writeToParcel(var3, 1);
                    return true;
                case 7:
                    var2.enforceInterface("com.baidu.trace.IService");
                    long var12 = var2.readLong();
                    String var7 = var2.readString();
                    this.stopTrace(var12, var7);
                    var3.writeNoException();
                    return true;
                case 8:
                    var2.enforceInterface("com.baidu.trace.IService");
                    var10 = this.startGather();
                    var3.writeNoException();
                    var3.writeInt(var10);
                    return true;
                case 9:
                    var2.enforceInterface("com.baidu.trace.IService");
                    var10 = this.stopGather();
                    var3.writeNoException();
                    var3.writeInt(var10);
                    return true;
                case 10:
                    var2.enforceInterface("com.baidu.trace.IService");
                    var10 = var2.readInt();
                    long var6 = var2.readLong();
                    String var8 = var2.readString();
                    boolean var9 = this.handleLocalFence(var10, var6, var8);
                    var3.writeNoException();
                    var3.writeInt(var9?1:0);
                    return true;
                case 11:
                    var2.enforceInterface("com.baidu.trace.IService");
                    var10 = var2.readInt();
                    this.handleExtendedOperate(var10);
                    var3.writeNoException();
                    return true;
                case 12:
                    var2.enforceInterface("com.baidu.trace.IService");
                    IListener var5 = com.baidu.trace.IListener.Stub.asInterface(var2.readStrongBinder());
                    this.registerListener(var5);
                    var3.writeNoException();
                    return true;
                case 13:
                    var2.enforceInterface("com.baidu.trace.IService");
                    this.unregisterListener();
                    var3.writeNoException();
                    return true;
                case 1598968902:
                    var3.writeString("com.baidu.trace.IService");
                    return true;
                default:
                    return super.onTransact(var1, var2, var3, var4);
            }
        }

        static class Proxy implements IService {
            private IBinder mRemote;

            Proxy(IBinder var1) {
                this.mRemote = var1;
            }

            public IBinder asBinder() {
                return this.mRemote;
            }

            public String getInterfaceDescriptor() {
                return "com.baidu.trace.IService";
            }

            public boolean setProtocolType(int var1) throws RemoteException {
                Parcel var2 = Parcel.obtain();
                Parcel var3 = Parcel.obtain();

                boolean var6;
                try {
                    var2.writeInterfaceToken("com.baidu.trace.IService");
                    var2.writeInt(var1);
                    this.mRemote.transact(1, var2, var3, 0);
                    var3.readException();
                    var6 = 0 != var3.readInt();
                } finally {
                    var3.recycle();
                    var2.recycle();
                }

                return var6;
            }

            public boolean setLocationMode(int var1) throws RemoteException {
                Parcel var2 = Parcel.obtain();
                Parcel var3 = Parcel.obtain();

                boolean var6;
                try {
                    var2.writeInterfaceToken("com.baidu.trace.IService");
                    var2.writeInt(var1);
                    this.mRemote.transact(2, var2, var3, 0);
                    var3.readException();
                    var6 = 0 != var3.readInt();
                } finally {
                    var3.recycle();
                    var2.recycle();
                }

                return var6;
            }

            public boolean setInterval(int var1, int var2) throws RemoteException {
                Parcel var3 = Parcel.obtain();
                Parcel var4 = Parcel.obtain();

                boolean var7;
                try {
                    var3.writeInterfaceToken("com.baidu.trace.IService");
                    var3.writeInt(var1);
                    var3.writeInt(var2);
                    this.mRemote.transact(3, var3, var4, 0);
                    var4.readException();
                    var7 = 0 != var4.readInt();
                } finally {
                    var4.recycle();
                    var3.recycle();
                }

                return var7;
            }

            public boolean setCacheSize(int var1) throws RemoteException {
                Parcel var2 = Parcel.obtain();
                Parcel var3 = Parcel.obtain();

                boolean var6;
                try {
                    var2.writeInterfaceToken("com.baidu.trace.IService");
                    var2.writeInt(var1);
                    this.mRemote.transact(4, var2, var3, 0);
                    var3.readException();
                    var6 = 0 != var3.readInt();
                } finally {
                    var3.recycle();
                    var2.recycle();
                }

                return var6;
            }

            public boolean setLocTimeOffset(int var1) throws RemoteException {
                Parcel var2 = Parcel.obtain();
                Parcel var3 = Parcel.obtain();

                boolean var6;
                try {
                    var2.writeInterfaceToken("com.baidu.trace.IService");
                    var2.writeInt(var1);
                    this.mRemote.transact(5, var2, var3, 0);
                    var3.readException();
                    var6 = 0 != var3.readInt();
                } finally {
                    var3.recycle();
                    var2.recycle();
                }

                return var6;
            }

            public boolean queryRealTimeLoc(TraceLocation var1) throws RemoteException {
                Parcel var2 = Parcel.obtain();
                Parcel var3 = Parcel.obtain();

                boolean var4;
                try {
                    var2.writeInterfaceToken("com.baidu.trace.IService");
                    this.mRemote.transact(6, var2, var3, 0);
                    var3.readException();
                    var4 = 0 != var3.readInt();
                    if(0 != var3.readInt()) {
                        var1.readFromParcel(var3);
                    }
                } finally {
                    var3.recycle();
                    var2.recycle();
                }

                return var4;
            }

            public void stopTrace(long var1, String var3) throws RemoteException {
                Parcel var4 = Parcel.obtain();
                Parcel var5 = Parcel.obtain();

                try {
                    var4.writeInterfaceToken("com.baidu.trace.IService");
                    var4.writeLong(var1);
                    var4.writeString(var3);
                    this.mRemote.transact(7, var4, var5, 0);
                    var5.readException();
                } finally {
                    var5.recycle();
                    var4.recycle();
                }

            }

            public int startGather() throws RemoteException {
                Parcel var1 = Parcel.obtain();
                Parcel var2 = Parcel.obtain();

                int var3;
                try {
                    var1.writeInterfaceToken("com.baidu.trace.IService");
                    this.mRemote.transact(8, var1, var2, 0);
                    var2.readException();
                    var3 = var2.readInt();
                } finally {
                    var2.recycle();
                    var1.recycle();
                }

                return var3;
            }

            public int stopGather() throws RemoteException {
                Parcel var1 = Parcel.obtain();
                Parcel var2 = Parcel.obtain();

                int var3;
                try {
                    var1.writeInterfaceToken("com.baidu.trace.IService");
                    this.mRemote.transact(9, var1, var2, 0);
                    var2.readException();
                    var3 = var2.readInt();
                } finally {
                    var2.recycle();
                    var1.recycle();
                }

                return var3;
            }

            public boolean handleLocalFence(int var1, long var2, String var4) throws RemoteException {
                Parcel var5 = Parcel.obtain();
                Parcel var6 = Parcel.obtain();

                boolean var9;
                try {
                    var5.writeInterfaceToken("com.baidu.trace.IService");
                    var5.writeInt(var1);
                    var5.writeLong(var2);
                    var5.writeString(var4);
                    this.mRemote.transact(10, var5, var6, 0);
                    var6.readException();
                    var9 = 0 != var6.readInt();
                } finally {
                    var6.recycle();
                    var5.recycle();
                }

                return var9;
            }

            public void handleExtendedOperate(int var1) throws RemoteException {
                Parcel var2 = Parcel.obtain();
                Parcel var3 = Parcel.obtain();

                try {
                    var2.writeInterfaceToken("com.baidu.trace.IService");
                    var2.writeInt(var1);
                    this.mRemote.transact(11, var2, var3, 0);
                    var3.readException();
                } finally {
                    var3.recycle();
                    var2.recycle();
                }

            }

            public void registerListener(IListener var1) throws RemoteException {
                Parcel var2 = Parcel.obtain();
                Parcel var3 = Parcel.obtain();

                try {
                    var2.writeInterfaceToken("com.baidu.trace.IService");
                    var2.writeStrongBinder(var1 != null?var1.asBinder():null);
                    this.mRemote.transact(12, var2, var3, 0);
                    var3.readException();
                } finally {
                    var3.recycle();
                    var2.recycle();
                }

            }

            public void unregisterListener() throws RemoteException {
                Parcel var1 = Parcel.obtain();
                Parcel var2 = Parcel.obtain();

                try {
                    var1.writeInterfaceToken("com.baidu.trace.IService");
                    this.mRemote.transact(13, var1, var2, 0);
                    var2.readException();
                } finally {
                    var2.recycle();
                    var1.recycle();
                }

            }
        }
    }
}
